(function(ns) {
    ns.navigation = function($scope) {
        $scope.projects =  [];



          var getnum = function() {
            console.log('getNum');
            $.get('/u', function(resp){
                $scope.projects = resp;
                if(!$scope.$$phase) $scope.$digest();
            })
          }



          setInterval(getnum, 20000);
          getnum();
    }
})(org.spindle.soasuite);